home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / dev / c / MemPools1_2.lha / mempools / DMakefile < prev    next >
Encoding:
Makefile  |  1995-05-22  |  3.5 KB  |  143 lines

  1. ###
  2. ###  MemPools:  malloc() replacement using standard Amiga pool functions.
  3. ###  Copyright  (C)  1994    Jochen Wiedmann
  4. ###
  5. ###  This program is free software; you can redistribute it and/or modify
  6. ###  it under the terms of the GNU General Public License as published by
  7. ###  the Free Software Foundation; either version 2 of the License, or
  8. ###  (at your option) any later version.
  9. ###
  10. ###  This program is distributed in the hope that it will be useful,
  11. ###  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ###  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ###  GNU General Public License for more details.
  14. ###
  15. ###  You should have received a copy of the GNU General Public License
  16. ###  along with this program; if not, write to the Free Software
  17. ###  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ###
  19. ###
  20. ###  This is the Makefile for DMake.
  21. ###
  22. ###
  23. ###  Computer:  Amiga 1200
  24. ###
  25. ###  Compilers: Dice 3.01
  26. ###             SAS/C 6.50
  27. ###             gcc 2.6.1
  28. ###
  29. ###
  30. ###  Author:    Jochen Wiedmann
  31. ###             Am Eisteich 9
  32. ###       72555 Metzingen
  33. ###             Germany
  34. ###
  35. ###             Phone: (0049) 7123 14881
  36. ###             Internet: jochen.wiedmann@uni-tuebingen.de
  37. ###
  38.  
  39.  
  40. SRCS=calloc.c free.c init.c malloc.c realloc.c strdup.c \
  41.      MemPoolPuddleSize.c MemPoolThreshSize.c MemPoolFlags.c
  42.  
  43. LIBS=mempools.lib mempoolss.lib mempoolssr.lib libmempools.a
  44.  
  45. DIST=Makefile SMakefile DMakefile lib.def COPYING MemPools.readme \
  46.      TimeMem.c TimeProg.c mempools.h Pools.c
  47.  
  48. CFLAGS=-proto
  49.  
  50. ############################################################################
  51. ###
  52. ###  Targets: all clean dist check time
  53. ###
  54. ############################################################################
  55.  
  56. all: mempoolss.lib mempoolssr.lib mempoolsl.lib mempoolsrl.lib \
  57.      mempoolsds.lib mempoolsdsr.lib mempoolsdl.lib mempoolsdrl.lib
  58.  
  59. dist: distall dodist
  60.  
  61. distall: mempoolss.lib mempoolssr.lib mempools.lib libmempools.a
  62.     @Delete #?.o quiet
  63.  
  64. dodist:
  65.     @cd /
  66.     @Delete MemPools.lha quiet
  67.     lha a -x MemPools.lha $(SRCS:*:MemPools/%1) $(LIBS:*:MemPools/%1) \
  68.                   $(DIST:*:MemPools/%1)
  69.     @cd mempools
  70.  
  71. mempoolss.lib:
  72.     lbmake mempools s
  73.  
  74. mempoolssr.lib:
  75.     lbmake mempools s r
  76.  
  77. mempoolsl.lib:
  78.     lbmake mempools l
  79.  
  80. mempoolsrl.lib:
  81.     lbmake mempools l r
  82.  
  83. mempoolsds.lib:
  84.     lbmake mempools d s
  85.  
  86. mempoolsdsr.lib:
  87.     lbmake mempools d s r
  88.  
  89. mempoolsdl.lib:
  90.     lbmake mempools d l
  91.  
  92. mempoolsdrl.lib:
  93.     lbmake d l r
  94.  
  95. mempools.lib:
  96.     smake mempools.lib
  97.  
  98. libmempools.a:
  99.     gmake libmempools.a
  100.  
  101. clean:
  102.     @Delete #?.o #?.lib lib#?.a dtmp:comp? all quiet
  103.  
  104. check: TimeMem
  105.     @avail flush
  106.     @TimeMem VERBOSE
  107.     @avail flush
  108.  
  109. time: TimeMem TimeMem.dice TimeMem.sas TimeMem.ixemul TimeMem.libnix TimeProg
  110.     @echo You'd better get a cup of coffee now ...
  111.     @echo
  112.     @echo Timing Dice functions:
  113.     @TimeProg "TimeMem.dice"
  114.     @echo Timing SAS/C functions
  115.     @TimeProg "TimeMem.sas"
  116.     @echo Timing ixemul functions
  117.     @TimeProg "TimeMem.ixemul"
  118.     @echo Timing libnix functions
  119.     @TimeProg "TimeMem.libnix"
  120.     @echo Timing MemPool functions
  121.     @TimeProg "TimeMem"
  122.  
  123. TestMem: TimeMem.c mempoolsds.lib
  124.     dcc $(CFLAGS) -DDEBUG -s -d1 -o TestMem TimeMem.c -lmempoolsd -ldebug
  125.  
  126. TimeMem: TimeMem.c rand.c mempoolss.lib
  127.     dcc $(CFLAGS) -o TimeMem TimeMem.c -lmempools
  128.  
  129. TimeMem.dice: TimeMem.c rand.c
  130.     dcc $(CFLAGS) -o TimeMem.dice TimeMem.c -lmempools
  131.  
  132. TimeMem.sas: TimeMem.c
  133.     smake TimeMem.sas
  134.  
  135. TimeMem.ixemul: TimeMem.c
  136.     gmake TimeMem.ixemul
  137.  
  138. TimeMem.libnix: TimeMem.c
  139.     gmake TimeMem.libnix
  140.  
  141. TimeProg: TimeProg.c
  142.     dcc $(CFLAGS) -o TimeProg TimeProg.c
  143.